<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>


<h1>User List</h1>

<table width="100%" border="2" cellspacing="4" cellpadding="4">
	<thead>
		<tr>
			<th>Email</th>
			<th>User Name</th>
			<th>First Name</th>
			<th>Middle Name</th>
			<th>Last Name</th>
			<th>Birth Date</th>
			<th>Role</th>
			<th>Locale</th>
			<th>Description</th>
		</tr>
	</thead>
	<c:forEach items="${REG_USER_LIST}" var="userBean">
		<tr>
			<td><c:out value="${userBean.email}"></c:out></td>
			<td><c:out value="${userBean.username}"></c:out></td>
			<td><c:out value="${userBean.firstName}"></c:out></td>
			<td><c:out value="${userBean.middleName}"></c:out></td>
			<td><c:out value="${userBean.lastName}"></c:out></td>
			<td><c:out value="${userBean.birthDate}"></c:out></td>
			<td>
				<c:forEach items="${userBean.authorities}" var="auth">
					<c:out value="${auth} "></c:out><br/>
				</c:forEach>
			</td>
			<td><c:out value="${userBean.userSettings.locale}" escapeXml="false"></c:out>
			</td>
			<td><c:out value="${userBean.description}" escapeXml="false"></c:out>
			</td>
		</tr>
	</c:forEach>

</table>
<br />
<br />
<br />